﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FuckCore.BO;
using FuckData.Model;
using FuckData.DAO;

namespace FuckData.BO
{
    public class PlaceBO : BaseBO<PlaceDAO, tbl_Place>
    {
        PlaceDAO _PlaceDAO = new PlaceDAO();

        /// <summary>
        /// Create by DucND
        /// Datecreate 17/01/2014
        /// Get list of Place by category
        /// </summary>
        /// <returns></returns>
        public List<tbl_Place> GetListPlaceByCat(long CategoryID)
        {
            var Result = _PlaceDAO.GetListPlaceByCat(CategoryID);
            if(Result==null)
                Result=new List<tbl_Place>();
            return Result;
        }

        public tbl_Place GetPlaceByID(long PlaceByID)
        {
            var Result = _PlaceDAO.GetPlaceByID(PlaceByID);
            if (Result == null)
                Result =new  tbl_Place();
            return Result;
        }
    }
}
